package com.wx.chapter10.interface_;

/**
 * ClassName:InterfacePolyParameter
 * Package :com.wx.chapter10.interface_
 * Description :
 *
 * @Author : coder_mu
 * @Create : 2023/6/9 - 23:32
 */
public class InterfacePolyParameter {
    public static void main(String[] args) {
        IF If = new Monster();
        If = new Car();
    }
}

interface IF {
}

class Monster implements IF {
    public void hi(){
        System.out.println("hi");
    }
}

class Car implements IF {
}

class AAA {
}

class BBB extends AAA {
}

class CCC extends AAA {
}